<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>  

</head>
<body>
    <script>
        var fso = new ActiveXObject("Scripting.FileSystemObject");
        var wsh = new ActiveXObject("WScript.Shell");
        wsh.Run("command.com /c ipconfig /all > C:\\ip.txt");
        var f = fso.OpenTextFile("C:\\ip.txt");
        var s = f.ReadAll();
        f.Close();
        alert(s.match(/IP Address(\. )+\: ((\d{1,3}\.){3}(\d{1,3}))/i)[2])
        </script>
        
</body>
</html>